﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NineMine.DataModel
{
    public class Board
    {
        [Key]
        public long Id { get; set; }

        public Project Project { get; set; }

        [MaxLength(255)]
        public string Name { get; set; }

        [MaxLength(255)]
        public string Description { get; set; }

        public long Position { get; set; }

        public long TopicsCount { get; set; }

        public long MessagesCount { get; set; }

        public Message LastMessage { get; set; }

        public long ParentId { get; set; }

        public List<Message> Messages { get; set; }
    }
}
